package data_bases.beans;

import Entity.Schema;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

/**
 *
 * @author JuanFelipe
 * clase para realizar prueba de tabla, se recomienda combiar
 */
@ManagedBean(name = "tableSquema")
@ViewScoped
public class TableSchemaBean implements Serializable {
    
    private List<Schema> schemas;
    private static final long serialVersionUID = 4089937794197364974L;  
    public TableSchemaBean() {
        schemas = new ArrayList<Schema>();
        schemas.add(new Schema("DB1", "UTF-8", 10));
        schemas.add(new Schema("DB2", "UTF-16", 1));
        schemas.add(new Schema("DB3", "UTF-8", 7));
    }

    public List<Schema> getSchemas() {
        return schemas;
    }

    public void setSchemas(List<Schema> schemas) {
        this.schemas = schemas;
    }
    
    
}
